package day17;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:
 * @date 2019/8/6 0006
 */
public class TestGender {
    public static void main(String[] args) {
        Gender f = Gender.F;
       // Gender g = new Gender();

        System.out.println(f.getSign());
        System.out.println(f);

        System.out.println("====");
        //获取枚举常量中的所有的枚举值
        Gender[] genders = Gender.values();

        for (Gender gender : genders) {
            System.out.println(gender);
        }
    }
}
